package com.wey.config;

import com.wey.handler.DefaultOAuth2FeignRequestInterceptor;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//Feign的拦截器配置
@Configuration
public class FeignInterceptorConfig {
    @Bean
    public RequestInterceptor oAuth2RequestInterceptor() {
        return new DefaultOAuth2FeignRequestInterceptor();
    }
}
